package com.yuan.statemachine.core;

/**
 * @author wjwei
 */

public enum StateResponseCode {

    /** 状态机操作状态码*/
    SUCCESS(200, "执行成功"),
    NO_STATE(402,"没有此状态")
    ;

    private final int code;
    private final String message;

    StateResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
